<?php
// $Id$

/**
 * @file
 * Default theme implementation of a Ventrilo client.
 *
 * Available variables:
 * - $client - An array containing client information. Possible fields include:
 *   'name', 'comment', 'comment_html', 'admin', 'phantom', 'time', and 'ping'.
 * - $depth - The tree depth to display this client.
 */
?>
<tr>
  <?php $padding = 5 + ($depth * 15); ?>
  <td class="client" style="padding-left: <?php print $padding; ?>px;" title="<?php print t('Online: @time, Ping: @latencyms', array('@time' => ventstatus_format_interval($client['time'], 3), '@latency' => $client['ping'])); ?>"><?php print $client['name']; ?></td>
  <td class="client-flags">
  <?php if ($client['admin']): ?>
    <span class="client-admin" title="<?php print t('Administrator'); ?>"></span>
  <?php endif; ?>
  <?php if ($client['phantom']): ?>
    <span class="client-phantom" title="<?php print t('Phantom'); ?>"></span>
  <?php endif; ?>
  <?php if ($client['comment']): ?>
    <span class="client-comment" title="<?php print $client['comment']; ?>"></span>
  <?php endif; ?>
  </td>
</tr>
<?php if ($client['comment']): ?>
<tr class="client-comment-row" style="display: none;">
  <td colspan="2" style="padding-left: <?php print $padding; ?>px;"><?php print $client['comment_html']; ?></td>
</tr>
<?php endif; ?>
